<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<body>
<script type="text/html" id="toolbarDemo">
	<div class="layui-btn-container">
		<button class="layui-btn layui-btn-sm" lay-event="add_panel">新增</button>
		<button class="layui-btn layui-btn-sm" lay-event="update_panel">修改</button>
  	</div>
</script>
	<table class="layui-hide" id="evaluationInformation" lay-filter="evaluationInformation"></table>
	<script type="text/javascript">
		var option={
			elem:'#evaluationInformation',
			title:'课程评价',
			path:'evaluationInformation',
			addurl:'edit',
			toolbar:'#toolbarDemo',
			cols: [[
				{field: 'id', title: 'ID', hide: true, usersize: true, sort: true},
				{field: 'grade', title: '评价等级'},
				{field: 'content', title: '课程点评'},
				{field: 'proposal', title: '建议'},
				{field: 'curriculum', title: '课程', templet: function(d){
					return d.curriculum?d.curriculum.courseName: '';
				}},	
				{field:'students',title:'学生姓名',templet: function(d){
					return d.students?d.students.name: '';
				}}
			]]
		};
		var currRow="${param.currRow==null?'null':param.currRow}";
		var limit=${param.limit==null?'null':param.limit};
		var page=${param.page==null?'null':param.page};
		var classTable=new LayUiTable(option,currRow,limit,page);
		classTable.init();
	</script>
</body>
